﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrainSchemeList.aspx.cs" Inherits="Web.TrainSchemeList" %>

<!doctype html>
<html lang="en">
<head>
    <base target="_self" />
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <link href="yaml/core/base.min.css" rel="stylesheet" />
    <link href="yaml/forms/gray-theme.css" rel="stylesheet" />
    <link href="yaml/screen/typography.css" rel="stylesheet" />
    <!--[if lte IE 7]>
      <link rel="stylesheet" href="yaml/core/iehacks.min.css" type="text/css"/>
      <![endif]-->
    <!--[if lt IE 9]>
      <script src="yaml/lib/html5shiv/html5shiv.js"></script>
      <![endif]-->
      <style>
        .ym-form label{ display: inline;}
      </style>
    <script>
        function showDetail(deptName) { location.href = "TrainSchemeInfo.aspx?deptName="+escape(deptName);return false; }
    </script>
</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<label for="Dept">部门:</label><select id="Dept" runat="server" class="ym-inline"></select>
            <asp:Button ID="Button1" runat=server OnClick="btnSeach_Click" Text="查询" class="ym-button"/>
            <input type=button class="ym-button" value="新增" onclick="javascript:location.href='TrainSchemeInfo.aspx';" id="btnNew" runat=server/>
			<asp:Repeater ID="rptList" EnableViewState="False" Runat="server">
				<HeaderTemplate>
					<table id="tbList" class="bordertable">
						<thead>
							<TR>
								<th width="20%">部门</th>
								<th width="20%">提交人</th>
								<th width="25%">最后更新时间</th>
								<th>操作</th>
							</TR>
						</thead>
						<tbody>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="<%# Container.ItemIndex%2==0?"bg":""%>">
						<td><%# DataBinder.Eval(Container.DataItem, "DeptName")%></td>
						<td><%# DataBinder.Eval(Container.DataItem, "Name")%></td>
						<td><%# DataBinder.Eval(Container.DataItem, "LastUpdateDate")%></td>
						<td><a href="#" onclick="javascript:return showDetail('<%# DataBinder.Eval(Container.DataItem, "DeptName")%>');">[详细]</a></td>
					</tr>
				</ItemTemplate>
				<FooterTemplate>
					</tbody> </table>
				</FooterTemplate>
			</asp:Repeater>
		</form>
	</body>
</HTML>